﻿<Page x:Class="PFC.Program.Verification.Pages.SearchDB"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      xmlns:local="clr-namespace:PFC.Program.Verification.Pages"
      mc:Ignorable="d" 
      d:DesignHeight="450" 
      d:DesignWidth="800"
      Title="SearchDB">

    <Grid Background="White">

        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--Название проги-->
        <StackPanel>
            <TextBlock Text="PFC"
                       VerticalAlignment="Center"
                       HorizontalAlignment="Center"
                       FontSize="50"/>
            <TextBlock Text="(автономная программа учета финансов)"
                       VerticalAlignment="Center"
                       HorizontalAlignment="Center"
                       FontSize="25"/>
        </StackPanel>

        <!--Интерактивное поле-->
        <StackPanel Grid.Row="1"
                    VerticalAlignment="Center">

            <TextBlock Name="infoField_Txb"
                       Text="..."
                       Foreground="SpringGreen"
                       HorizontalAlignment="Center"
                       FontSize="20"/>

            <!--Переход на страницу авторизации-->
            <Button Name="loginBtn"
                    Grid.Row="2"
                    Height="30"
                    Content="Войти"
                    VerticalAlignment="Top"
                    FontSize="20"
                    Padding="0"
                    Margin="10"
                    Visibility="Visible"
                    IsEnabled="False"/>

            <!--Перехода на страницу регистрации-->
            <Button Name="regisBtn"
                    Grid.Row="2"
                    Height="30"
                    Content="Зарегистрироваться"
                    VerticalAlignment="Top"
                    FontSize="20"
                    Padding="0 0 0 0"
                    Margin="10"
                    Visibility="Visible"
                    IsEnabled="False"/>

        </StackPanel>

        <!--Критические сообщения-->
        <TextBlock Name="criticalError_Txb"
                   Grid.Row="2"
                   FontSize="10"
                   Margin="5"
                   TextWrapping="Wrap"
                   VerticalAlignment="Top"
                   HorizontalAlignment="Right"
                   Foreground="Red"/>
        

        <!--Статус подключения-->
        <Image Name="connectionStatus_Img"
               Grid.Row="2"
               VerticalAlignment="Bottom"
               HorizontalAlignment="Left"
               Source="/Resources/Connection-.png"
               Width="64"/>
        
        <!--Кнопка обновления соединения-->
        <Button Name="refreshConnection_Btn"
                Grid.Row="2"
                Content="Обновить"
                FontSize="20"
                VerticalAlignment="Bottom"
                HorizontalAlignment="Left"
                Margin="80 0 0 10"
                Visibility="Hidden" 
                Click="refreshConnection_Btn_Click"/>

    </Grid>
</Page>
